package cn.psh.service.impl;

import cn.psh.domain.Store;
import cn.psh.mapper.StoreMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.psh.service.StoreService;


@Service
public class StoreServiceImpl implements StoreService {
    @Autowired
    private StoreMapper storeMapper;

    @Override
    public Store queryById(Long id) {
        return storeMapper.queryById(id);
    }

    @Override
    public void update(Store store) {
        storeMapper.update(store);

    }

    @Override
    public void save(Store sto) {
        storeMapper.save(sto);
    }
}
